const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,
  companyId: state => state.user.userInfo.companyId, // 公司 ID
  isHaveAsyncRoute: state => state.app.asyncRoute, // 是否挂载动态路由规则对象
  menus: state => state.user.userInfo.roles.menus // 返回路由权限的表示数组
}
export default getters
